package org.remixlab.gnutopic.data;

import java.io.File;
import java.io.FilenameFilter;

public class OnlyExtFilter implements FilenameFilter {
	private String ext;
	
	public OnlyExtFilter(String ext){
		this.ext = ext;
	}

	@Override
	public boolean accept(File dir, String name) {	
		return name.endsWith(ext);
	}
}
